﻿namespace _12306Demo.Service.Entities
{
    public class Station
    {
        /// <summary>
        /// 从构造函数初始化属性
        /// </summary>
        /// <param name="firstLetter"></param>
        /// <param name="name"></param>
        /// <param name="code"></param>
        /// <param name="spell"></param>
        public Station(string firstLetter, string name, string code, string spell)
        {
            FirstLetter = firstLetter;
            Name = name;
            Code = code;
            Spell = spell;
        }

        /// <summary>
        /// 首字母拼音
        /// </summary>
        public string FirstLetter { get; private set; }

        /// <summary>
        /// 车站名
        /// </summary>
        public string Name { get; private set; }

        /// <summary>
        /// 电报码
        /// </summary>
        public string Code { get; private set; }

        /// <summary>
        /// 全拼
        /// </summary>
        public string Spell { get; private set; } 
    }
}